from pydantic import BaseModel
from typing import List, Optional, Dict

class SponsorRecordItem(BaseModel):
    sponsor_id: int
    company_code: str
    company_name: str
    contacts: Optional[List[Dict]] = None  
    umbrella_code: Optional[str]
    umbrella_name: Optional[str]
    program_id: int
    program_code: str
    scholarship_years: str
    latest_year: int
    status: str
    program_year: int
    program_length: int
    program_value: float
    faculty: Optional[str]
    coop_program: Optional[str]
    position: int
    total_amount_per_position: Optional[float]
    sponsorship_cost: Optional[float]
    logo: Optional[str] = None
    logo_last_updated: Optional[str] = None

    class Config:
        from_attributes = True  


